//
//  JSThemeProtocol.h
//  JSBasicFramework
//
//  Created by Apple on 2018/8/2.
//  Copyright © 2018年 Apple. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol JSThemeProtocol <QMUIConfigurationTemplateProtocol>


@required

- (UIColor *)themeTintColor;
- (UIColor *)themeListTextColor;
- (UIColor *)themeCodeColor;
- (UIColor *)themeGridItemTintColor;

- (NSString *)themeName;

@end

/// 所有能响应主题变化的对象均应实现这个协议，目前主要用于 QDCommonViewController 及 QDCommonTableViewController
@protocol JSChangingThemeDelegate <NSObject>

@required

- (void)themeBeforeChanged:(NSObject<JSThemeProtocol> *)themeBeforeChanged afterChanged:(NSObject<JSThemeProtocol> *)themeAfterChanged;

@end
